package com.duqc.designpattern.responsibility;

/**
 * @ClassName FruitsFilter
 * @Description 责任链模式（第二步：定义过滤器）
 * @Author duqc
 * @Date 2021/5/7
 **/
public class FruitsFilter implements Filter{

    @Override
    public String doFilter(String data, FilterChain filterChain) {
        return filterChain.prehandleRequest(filterByWord(data,"水果"));
    }

}
